module Base
{
    model Liaz300Truck_DoorFrontLeft
	{
		mesh = vehicles/LIAZ154_Body|FrontLeftDoor,
		shader = vehicle,
		scale = 1,
		static = FALSE,
        boneWeight = FrontLeftDoorBone 1.0,
	}
	model Liaz300Truck_DoorFrontRight
	{
		mesh = vehicles/LIAZ154_Body|FrontRightDoor,
		shader = vehicle,
		scale = 1,
		static = FALSE,
        boneWeight = FrontRightDoorBone 1.0,
	}
	

	template vehicle Liaz300Truck_doors
	{
		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,

		
		part DoorFrontLeft
		{
			model Default
			{
				file = Liaz300Truck_DoorFrontLeft,
			}

			area = SeatFrontLeft,
			
            
						

			anim Close
			{
                                sound = VehicleDoorCloseSportsCar,
				anim = FrontLeftDoor_closing,
				reverse = FALSE,
				rate = 4.0,
			}

			anim Open
			{
                                sound = VehicleDoorOpenSportsCar,
				anim = FrontLeftDoor_closing,
				reverse = TRUE,
				rate = 4.0,
			}

			anim Closed
			{
				anim = FrontLeftDoor_closing,
				reverse = TRUE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = FrontLeftDoor_closing,
				reverse = FALSE,
				animate = FALSE,
			}

			table uninstall
			{
				requireUninstalled = WindowFrontLeft,
			}
		}

		part DoorFrontRight
		{
			model Default
			{
				file = Liaz300Truck_DoorFrontRight,
			}

			area = SeatFrontRight,
			

			anim Close
			{
                                sound = VehicleDoorCloseSportsCar,
				anim = FrontRightDoor_closing,
				reverse = FALSE,
				rate = 4.0,
			}

			anim Open
			{
                                sound = VehicleDoorOpenSportsCar,
				anim = FrontRightDoor_closing,
				reverse = TRUE,
				rate = 4.0,
			}

			anim Closed
			{
				anim = FrontRightDoor_closing,
				reverse = TRUE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = FrontRightDoor_closing,
				reverse = FALSE,
				animate = FALSE,
			}

			table uninstall
			{
				requireUninstalled = WindowFrontRight,
			}
		}

		
		part Door*
		{
			category = door,
			mechanicRequireKey = true,

			table install
			{
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}

			table uninstall
			{
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,
			}

			lua
			{
				create = Vehicles.Create.Door,
				init = Vehicles.Init.Door,
				use = Vehicles.Use.Door,
			}
		}
	}
}